package com.lanou3g.dllo.baidumusic.tools;

import android.content.Context;

import com.lanou3g.dllo.baidumusic.main.playmusic.PlaymusicBean;

import java.util.ArrayList;

/**
 * Created by dllo on 16/6/30.
 */
public class PlaylistManager {

    public boolean isPlaying;

    public boolean isPlaying() {
        return isPlaying;
    }

    public void setPlaying(boolean playing) {
        isPlaying = playing;
    }

    private static PlaylistManager playlistManager;
    private ArrayList<PlaymusicBean>  playlist;

    public ArrayList<PlaymusicBean> getPlaylist() {
        return playlist;
    }

    private PlaylistManager() {
        playlist = new ArrayList<>();
    }

    public static PlaylistManager getInstance() {
        if (playlistManager == null) {
            synchronized (PlaylistManager.class) {
                if (playlistManager == null) {
                    playlistManager = new PlaylistManager();
                }
            }
        }

        return playlistManager;
    }


}
